package com.logistics.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * 创建司机请求 DTO
 */
@Data
public class DriverCreateRequest {
    
    @NotBlank(message = "姓名不能为空")
    private String name;
    
    private Integer gender;
    
    @NotBlank(message = "联系电话不能为空")
    private String phone;
    
    @NotBlank(message = "身份证号不能为空")
    private String idCard;
    
    @NotBlank(message = "驾驶证类型不能为空")
    private String licenseType;
    
    @NotBlank(message = "驾驶证号不能为空")
    private String licenseNo;
    
    @NotNull(message = "驾驶证到期日期不能为空")
    private LocalDate licenseExpireDate;
    
    @NotNull(message = "入职日期不能为空")
    private LocalDate entryDate;
    
    private String emergencyContact;
    
    private String emergencyPhone;
    
    private String driverStatus;
    
    private String remark;
    
    /**
     * 站点ID（可选，默认从当前用户获取）
     * 租户管理员可以指定站点，普通用户自动使用当前站点
     */
    private Long siteId;
}

